﻿using Effect;
using System.Globalization;
using System.Windows.Data;

namespace StudentAgeSaveEditor.Convert
{
    class ToStringConverter : IValueConverter
    {
        public object? Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
           if(value is Effector effector)
            {
                return effector.ToString();
            }
            return null;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
